import os, datetime
import pandas as pd
start = '2018-11-01'
end = (datetime.datetime.now()-datetime.timedelta(days=1)).strftime('%Y-%m-%d')
date_start = datetime.datetime.strptime(start, '%Y-%m-%d')
date_end = datetime.datetime.strptime(end, '%Y-%m-%d')
for i in pd.date_range(datestart, dateend):
    cmd = 'kitchen.bat -rep=yao -user=admin -pass=admin -dir=/job -job=material_inventory "-param:t_date=\'%s\'" -level=Error' % (i)
    os.system(cmd)